export const NUM_INCREASE = 'NUM_INCREASE';
export const NUM_NEWNUM = 'NUM_NEWNUM';

export function increase(num) {
    return {
        type: NUM_INCREASE,
        payload: num
    }
}

export function random(number) {
    return {
        type: NUM_NEWNUM,
        payload: number
    }
}


export function onIncreaseClick() {
    return function(dispatch) {
        dispatch(increase(66));
    }
}
export function randomNumber() {
    return function(dispatch) {
        dispatch(random(NUM_INCREASE));
    }
}
